//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\ChargeItemDomain.java

package com.ce.pms.charge.model;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:收费项目 关联数据表：FEE_CHARGE_ITEM
 */
@Entity
@Table(name = "FEE_CHARGE_ITEM")
public class ChargeItemDomain implements IDomainObject{

	/**
	 * 关键字
	 */
	@Id
	@GeneratedValue
	@Column(name = "CHARGE_ITEM_ID")
	private Long keyword;

	/**
	 * 项目名称
	 */
	@Column(name = "ITEM_NAME", nullable = false, length = 50)
	private String itemName;

	/**
	 * 交易码
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "BIZ_CODE_ID" ,nullable = false)
	private BusinessCodeDomain bizCode;

	/**
	 * 收费类型
	 */
	@Column(name = "CHARGE_CLASS", nullable = false, length = 3)
	private String chrgType;

	/**
	 * 走表类型
	 */
	@Column(name = "METER_CLASS", length = 3)
	private String meterType;

	/**
	 * 序号
	 */
	@Column(name = "SEQ_NO", nullable = false)
	private Short seqNo;

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 500)
	private String remark;

	@Embedded
	private SysInfo sysInfo;
	/**
	 * @roseuid 48757D1102EE
	 */
	public ChargeItemDomain() {

	}
	/**
	 * mini constructor
	 * @param itemName  项目名称
	 * @param bizCode   交易码
	 * @param chrgType  收费类型
	 * @param seqNo  序号
	 * @param sysInfo   系统信息
	 */
	public ChargeItemDomain(String itemName, BusinessCodeDomain bizCode, String chrgType, Short seqNo ,SysInfo sysInfo) {
		super();
		this.itemName = itemName;
		this.bizCode = bizCode;
		this.chrgType = chrgType;
		this.seqNo = seqNo;
		this.sysInfo = sysInfo;
	}
	public BusinessCodeDomain getBizCode() {
		return bizCode;
	}
	public void setBizCode(BusinessCodeDomain bizCode) {
		this.bizCode = bizCode;
	}
	public String getChrgType() {
		return chrgType;
	}
	public void setChrgType(String chrgType) {
		this.chrgType = chrgType;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public Long getKeyword() {
		return keyword;
	}
	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}
	public String getMeterType() {
		return meterType;
	}
	public void setMeterType(String meterType) {
		this.meterType = meterType;
	}

	public Short getSeqNo() {
		return seqNo;
	}
	public void setSeqNo(Short seqNo) {
		this.seqNo = seqNo;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public SysInfo getSysInfo() {
		return sysInfo;
	}
	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
